import Vue from 'vue'
import App from './App.vue'

import router from './Router/router.js'
import store from './store/store.js'

// 引入初始化样式 以及 组件库样式
import './assets/css/reset.css'
import './assets/css/swiper.min.css'
import './ele-ui/index.js'
// 引入注册公共全局组件
import GoodCategorNav from './components/GoodCategorNav/GoodCategorNav.vue'
import carouselList from './components/carouselList/carouselList.vue'
import Pagination from './components/Pagination/Pagination.vue'
Vue.component('GoodCategorNav', GoodCategorNav)
Vue.component('carouselList', carouselList)
Vue.component('Pagination', Pagination)

// 引入加载mockjs 配置
import './mock/mockServe.js'
Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router,
  store,
  beforeCreate() {
    Vue.prototype.$bus = this;
  }
}).$mount('#app')
